package org.darkforest.dao.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.PdLog;
import org.darkforest.model.PdLogSearchBean;
import org.darkforest.model.PdLogVo;
@DBMapper
public interface PdLogMapper {
    int deleteByPrimaryKey(Integer lgId);

    int insert(PdLog record);

    int insertSelective(PdLog record);

    PdLog selectByPrimaryKey(Integer lgId);

    int updateByPrimaryKeySelective(PdLog record);

    int updateByPrimaryKey(PdLog record);
    
    List<PdLogVo> selectByMember(PdLogSearchBean page);

    List<PdLogVo> selectByCondition(PdLogSearchBean pdLog);

    List<Map<String,Object>> statisticsPdLogByDay(PdLogSearchBean searchBean);

    List<Map<String,Object>> statisticsPdLogByMonth(PdLogSearchBean searchBean);

    List<Map<String,Object>> statisticsPdLogByCustom(PdLogSearchBean searchBean);

    List<PdLogVo> selectListByDay(PdLogSearchBean searchBean);

    List<PdLogVo> selectListByMonth(PdLogSearchBean searchBean);

    List<PdLogVo> selectListByCustom(PdLogSearchBean searchBean);

    List<Map<String,Object>> statisticsByDay(PdLogSearchBean searchBean);

    List<Map<String,Object>> statisticsByMonth(PdLogSearchBean searchBean);

    List<Map<String,Object>> statisticsByCustom(PdLogSearchBean searchBean);

    /***
     * webchat获取个人已提现总额
     * @param record
     * @return
     */
    BigDecimal selectcashedAmount(PdLog record);
}